Part Number Hot Search : 
02K50 LF725RW R1004 PT6311 LTC2845 0910000 KIA7912 062AC
Product Description
Full Text Search
 

To Download M37532M4-XXXGP Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  single-chip 8-bit cmos microcomputer description the 7532 group is the 8-bit microcomputer based on the 740 family core technology. the 7532 group has a usb, 8-bit timers, and an a-d converter, and is useful for an input device for personal computer peripherals. features basic machine-language instructions ....................................... 69 the minimum instruction execution time .......................... 0.34 s (at 6 mhz oscillation frequency for the shortest instruction) memory size ................................................................................. rom ............................................... 8k to 16k bytes ram .............................................. 256 to 384 bytes programmable i/o ports ...................................... 28 (36-pin type) ............................................................................ 24 (32-pin type) interrupts .................................................... 13 sources, 8 vectors timers ............................................................................ 8-bit ? 3 mitsubishi microcomputers 7532 group serial i/o1 ................................ used only for low speed in usb (usb/uart) serial i/o2 ...................................................................... 8-bit ? 1 (clock-synchronized) a-d converter ................................................ 10-bit ? 8 channels clock generating circuit ............................................. built-in type (connect to external ceramic resonator or quartz-crystal oscillator ) watchdog timer ............................................................ 16-bit ? 1 power source voltage at 6 mhz x in oscillation frequency at ceramic resonator ................................................................................... 4.1 to 5.5 v power dissipation ............................................ 30 mw (standard) operating temperature range ................................... ?0 to 85 c application input device for personal computer peripherals pin configuration (top view) fig. 1 pin configuration of m37532m4-xxxfp,m37532e8fp package type: 36p2r-a 10 1 2 3 4 6 7 8 9 11 12 14 15 16 5 13 17 18 36 35 34 33 31 30 26 25 24 23 22 21 20 19 32 27 29 28 p0 0 cnv ss x out x in v ss p0 1 p0 2 p0 3 p0 4 p3 0 (led 0 ) vcc v ref p0 5 p1 0 /r x d/d- p2 6 /an 6 p2 7 /an 7 p1 1 /t x d/d+ p1 2 /s clk p1 3 /s data p2 3 /an 3 p2 2 /an 2 p2 1 /an 1 p2 0 /an 0 p3 1 (led 1 ) p3 7 /int 0 p2 4 /an 4 p2 5 /an 5 p0 6 p0 7 usbv refout reset m37532m4-xxxfp m37532e8fp p1 4 /cntr 0 p3 5 (led 5 ) p3 4 (led 4 ) p3 3 (led 3 ) p3 2 (led 2 )
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 2 pin configuration (top view) fig. 2 pin configuration of M37532M4-XXXGP outline 32p6b-a p0 7 p1 0 /r x d/d- p1 1 /t x d/d+ p1 2 /s clk p1 3 /s data p1 4 /cntr 0 p2 0 / an 0 p2 1 / an 1 32 31 30 29 28 27 26 25 p3 4 (led 4 ) p3 3 (led 3 ) p3 2 (led 2 ) p3 1 (led 1 ) p3 0 (led 0 ) v ss x out x in 9 10 11 12 13 14 15 16 2 8 7 6 5 3 1 4 v cc cnv ss reset p2 2 /an 2 p0 5 20 17 18 19 21 24 p0 2 p0 4 p0 3 p0 6 23 22 p0 1 p0 0 usbv refout M37532M4-XXXGP p2 3 /an 3 p2 4 /an 4 p2 5 /an 5 v ref
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 3 pin configuration (top view) fig. 3 pin configuration of m37532rss outline 42s1m 10 1 2 3 4 6 7 8 9 11 12 14 15 16 5 13 17 18 36 35 34 33 31 30 26 25 24 23 22 32 27 29 28 19 20 21 42 41 40 39 37 38 p0 0 cnv ss x out x in v ss p0 1 p0 2 p0 3 p0 4 p3 0 (led 0 ) vcc v ref p0 5 p1 2 /s clk p2 5 /an 5 p2 6 /an 6 p1 3 /s data p1 4 /cntr 0 nc p2 2 /an 2 nc p2 1 /an 1 p2 0 /an 0 p3 1 (led 1 ) p2 3 /an 3 p2 4 /an 4 p0 6 p0 7 p3 7 /int 0 reset m37532rss nc p3 5 (led 5 ) p3 4 (led 4 ) p3 3 (led 3 ) p3 2 (led 2 ) usbv refout p1 0 /r x d/d- p1 1 /t x d/d+ nc nc p2 7 /an 7 nc
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 4 functional block fig. 4 functional block diagram functional block diagram (package: 36p2r) si/o1(8) usb(ls) r a m r o m c p u a x y s pc h pc l ps v ss 18 reset 13 v cc 15 14 cnv ss cntr 0 p0(8) 34 32 30 28 33 31 29 27 p1(5) 3135 236 7 5 6 4 p2(8) p3(7) 12 16 17 11 9 10 8 v ref 0 26 int 0 20 23 21 19 22 24 25 si/o2(8) usbv refout x in x out clock input clock output clock generating circuit watchdog timer reset a-d converter (10) i/o port p3 i/o port p2 i/o port p1 i/o port p0 key-on wake up timer 1 (8) timer 2 (8) timer x (8) prescaler 12 (8) prescaler x (8) reset input
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 5 fig. 5 functional block diagram functional block diagram (package: 32p6b-a) si/o1(8) usb(ls) r a m r o m c p u a x y s pc h pc l ps v ss 11 reset 6 v cc 8 7 cnv ss cntr 0 p0(8) 25 23 21 19 24 22 20 18 p1(5) 30 28 26 29 27 32 31 p2(6) p3(5) 5 910 4 2 3 1 v ref 0 17 13 16 14 12 15 si/o2(8) usbv refout x in x out clock input clock output clock generating circuit watchdog timer reset a-d converter (10) i/o port p3 i/o port p2 i/o port p1 i/o port p0 key-on wake up timer 1 (8) timer 2 (8) timer x (8) prescaler 12 (8) prescaler x (8) reset input
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 6 pin description table 1 pin description function ?apply voltage of 4.1 to 5.5 v to vcc, and 0 v to vss. ?reference voltage input pin for a-d converter ?output pin for pulling up a d- line with 1.5 k w external resistor ?chip operating mode control pin, which is always connected to vss. ?reset input pin for active l ?input and output pins for main clock generating circuit ?connect a ceramic resonator or quartz crystal oscillator between the x in and x out pins. ?if an external clock is used, connect the clock source to the x in pin and leave the x out pin open. function expect a port function name power source analog reference voltage usb reference voltage output cnvss reset input ?8-bit i/o port. ?i/o direction register allows each pin to be individually pro- grammed as either input or output. ?cmos compatible input level ?cmos 3-state output structure ?whether a built-in pull-up resistor is to be used or not can be determined by program. ?5-bit i/o port ?i/o direction register allows each pin to be individually pro- grammed as either input or output. ?cmos compatible input level ?cmos 3-state output structure ?cmos/ttl level can be switched for p1 0 , p1 2 , p1 3 . ?when using the usb function, input level of ports p1 0 and p1 1 becomes usb input level, and output level of them becomes usb output level. ?8-bit i/o port having almost the same function as p0 ?cmos compatible input level ?cmos 3-state output structure pin vcc, vss v ref usbv refout cnvss reset p0 0 Cp0 7 p1 0 /rxd/d- p1 1 /txd/d+ p1 2 /s clk p1 3 /s data p1 4 /cntr 0 p2 0 /an 0 C p2 7 /an 7 p3 0 Cp3 5 p3 7 /int 0 clock input clock output i/o port p0 i/o port p1 i/o port p2 i/o port p3 x in x out ?7-bit i/o port ?i/o direction register allows each pin to be individually programmed as either input or output. ?cmos compatible input level (cmos/ttl level can be switched for p3 7 ). ?cmos 3-state output structure ?p3 0 to p3 5 can output a large current for driving led. ?whether a built-in pull-up resistor is to be used or not can be determined by program. ?key-input (key-on wake up interrupt input) pins ?serial i/o1 function pin ?serial i/o2 function pin ?timer x function pin ?input pins for a-d converter ?interrupt input pins
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 7 group expansion mitsubishi plans to expand the 7532 group as follow: memory type support for mask rom version, one time prom version, and emu- lator mcu . memory size rom/prom size .................................................. 8 k to 16 k bytes ram size ................................................................256 to 384 bytes package 36p2r-a ..................................... 0.8 mm-pitch plastic molded sop 32p6b-a .................................... 0.8 mm-pitch plastic molded lqfp 42sim ...................................... 42 pin shrink ceramic piggy back fig. 6 memory expansion plan currently supported products are listed below. table 2 list of supported products product m37532m4-xxxfp M37532M4-XXXGP m37532e8fp m37532rss remarks mask rom version mask rom version one time prom version (blank) emulator mcu package 36p2r-a 32p6b-a 36p2r-a 42s1m (p) rom size (bytes) rom size for user () 8192 (8062) 8192 (8062) 16384 (16254) ram size (bytes) 256 256 384 384 rom size (byte) ram size (byte) 128 16k 256 384 8k 0 m37532e8 m37532m4
single-chip 8-bit cmos microcomputer 7532 group mitsubishi micr ocomputers 8 functional description central processing unit (cpu) the 7532 group uses the standard 740 family instruction set. refer to the table of 740 family addressing modes and machine-lang uage instructions or the 740 family software manual for details o n each instruction set. machine-resident 740 family instructions are as follows: 1. the fst and slw instructions cannot be used. 2. the mul and div instructions cannot be used. 3. the wit instruction can be used. 4. the stp instruction can be used. [cpu mode register] cpum the cpu mode register contains the stack page selection bit. this register is allocated at address 003b 16 . fig. 8 switching method of cpu mode register switching method of cpu mode register switch the cpu mode register (cpum) at the head of program a fter releasing reset in the following method. fig. 7 structure of cpu mode register cpu mode register (cpum: address 003b 16 ) stack page selection bit 0 : 0 page 1 : 1 page main clock division ratio selection bits b7 b6 0 0 : f( f ) = f(x in )/2 (high-speed mode) 0 1 : f( f ) = f(x in )/8 (middle-speed mode) 1 0 : applied from ring oscillator 1 1 : f( f ) = f(x in ) (double-speed mode) not used (returns 0 when read) (do not write 1 to these bits ) processor mode bits b1 b0 0 0 single-chip mode 0 1 1 0 1 1 not available b7 b0 switch the clock division ratio selection bits (bits 6 and 7 of cpum) after releasing reset main routine start with a built-in ring oscillator ( note ) switch to other mode except a ring oscillator (select one of 1/1, 1/2, and 1/8) note . after releasing reset the operation starts by starting a ring oscillator automatically. do not use a ring oscillator at ordinary operati on. wait until establish ceramic oscillator clock.
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 9 memory special function register (sfr) area the sfr area in the zero page contains control registers such as i/o ports and timers. ram ram is used for data storage and for a stack area of subroutine calls and interrupts. rom the first 128 bytes and the last 2 bytes of rom are reserved for device testing and the rest is a user area for storing programs. interrupt vector area the interrupt vector area contains reset and interrupt vectors. zero page the 256 bytes from addresses 0000 16 to 00ff 16 are called the zero page area. the internal ram and the special function registers (sfr) are allocated to this area. the zero page addressing mode can be used to specify memory and register addresses in the zero page area. access to this area with only 2 bytes is possible in the zero page addressing mode. special page the 256 bytes from addresses ff00 16 to ffff 16 are called the spe- cial page area. the special page addressing mode can be used to specify memory addresses in the special page area. access to this area with only 2 bytes is possible in the special page addressing mode. fig. 9 memory map diagram 0100 16 0000 16 0040 16 0440 16 ff00 16 ffec 16 fffe 16 ffff 16 256 384 xxxx 16 013f 16 01bf 16 8192 16384 e000 16 c000 16 e080 16 c080 16 yyyy 16 zzzz 16 ram rom reserved area sfr area not used interrupt vector area rom area reserved rom area (128 bytes) zero page special page ram area ram capacity (bytes) address xxxx 16 rom capacity (bytes) address yyyy 16 reserved rom area address zzzz 16
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 10 fig. 10 memory map of special function register (sfr) 0000 16 0001 16 0002 16 0003 16 0004 16 0005 16 0006 16 0007 16 0008 16 0009 16 000a 16 000b 16 000c 16 000d 16 000e 16 000f 16 0010 16 0011 16 0012 16 0013 16 0014 16 0015 16 0016 16 0017 16 0018 16 0019 16 001a 16 001b 16 001c 16 001d 16 001e 16 001f 16 port p0 (p0) port p0 direction register (p0d) port p1 (p1) port p1 direction register (p1d) port p2 (p2) port p2 direction register (p2d) port p3 (p3) port p3 direction register (p3d) pull-up control register (pull) transmit/receive buffer register (tb/rb) usb status register (usbsts)/uart status register (uartsts) serial i/o1 control register (sio1con) uart control register (uartcon) baud rate generator (brg) port p1p3 control register (p1p3c) usb data toggle synchronization register ( trsync) usb interrupt source discrimination register 1 (usbir1) usb interrupt source discrimination register 2 (usbir2) 0020 16 0021 16 0022 16 0023 16 0024 16 0025 16 0026 16 0027 16 0028 16 0029 16 002a 16 002b 16 002c 16 002d 16 002e 16 002f 16 0030 16 0031 16 0032 16 0033 16 0034 16 0035 16 0036 16 0037 16 0038 16 0039 16 003a 16 003b 16 003c 16 003d 16 003e 16 003f 16 timer count source set register (tcss) a-d conversion register (low-order) (adl) prescaler 12 (pre12) timer 1 (t1) timer 2 (t2) timer x mode register (tm) prescaler x (prex) timer x (tx) serial i/o2 control register (sio2con) serial i/o2 register (sio2) a-d control register (adcon) a-d conversion register (high-order) (adh) misrg watchdog timer control register (wdtcon) interrupt edge selection register (intedge) cpu mode register (cpum) interrupt request register 1 (ireq1) interrupt control register 1 (icon1) usb interrupt control register (usbicon) usb transmit data byte number set register 0 (ep0byte) usb transmit data byte number set register 1 (ep1byte) usbpid control register 0 (ep0pid) usbpid control register 1 (ep1pid) usb address register (usba) usb sequence bit initialization register (inisq1) usb control register (usbcon)
single-chip 8-bit cmos microcomputer 7532 group mitsubishi micr ocomputers 11 i/o ports [direction registers] pid the i/o ports have direction registers which determine the i nput/out- put direction of each pin. each bit in a direction register corresponds to one pin, and each pin can be set to be input or output. when 1 is set to the bit corresponding to a pin, this pin becomes an output port. when 0 is set to the bit, the pin becomes an input port. when data is read from a pin set to output, not the value of the pin itself but the value of port latch is read. pins set to inpu t are floating, and permit reading pin values. if a pin set to input is written to, only the port latch is written to and the pin remains floating. [pull-up control] pull by setting the pull-up control register (address 0016 16 ), ports p0 and p3 can exert pull-up control by program. however, pins set t o output are disconnected from this control and cannot exert pull-up control. [port p1p3 control] p1p3c by setting the port p1p3 control register (address 0017 16 ), a cmos input level or a ttl input level can be selected for ports p 1 0 , p1 2, p1 3, and p3 7 by program. then, set 1 to each bit 6 of the port p3 direction registe r and port p3 register. fig. 12 structure of port p1p3 control register fig. 11 structure of pull-up control register pull-up control register (pull: address 0016 16 ) p0 0 pull-up control bit p0 1 pull-up control bit p0 2 , p0 3 pull-up control bit p0 4 e p0 7 pull-up control bit p3 0 e p3 3 pull-up control bit p3 4 pull-up control bit p3 5 pull-up control bit p3 7 pull-up control bit note : pins set to output ports are disconnected from pull-up cont rol. b7 b0 0: pull-up off 1: pull-up on initial value: ff 16 port p1p3 control register (p1p3c: address 0017 16 ) b7 b0 p3 7 /int 0 input level selection bit 0 : cmos level 1 : ttl level not used (do not write 1 to this bit) p1 0 ,p1 2 ,p1 3 input level selection bit 0 : cmos level 1 : ttl level not used
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 12 table 3 i/o port function table name i/o port p0 i/o port p1 pin p0 0 Cp0 7 p1 0 /rxd/d- p1 1 /txd/d+ p1 2 /s clk p1 3 /s data p1 4 /cntr 0 p2 0 /an 0 C p2 7 /an 7 p3 0 Cp3 5 p3 7 /int 0 i/o port p2 i/o port p3 input/output i/o individual bits i/o format ?cmos compatible input level ?cmos 3-state output ?usb input/output level when selecting usb function ?cmos compatible input level ?cmos 3-state output (note) non-port function key input interrupt serial i/o1 function input/output serial i/o2 function input/output timer x function input/output a-d conversion input external interrupt input related sfrs pull-up control register serial i/o1 control register serial i/o2 control register timer x mode register a-d control register interrupt edge selection register diagram no. (1) (2) (3) (4) (5) (6) (7) (8) (9) note: port p3 7 is cmos/ttl level.
single-chip 8-bit cmos microcomputer 7532 group mitsubishi micr ocomputers 13 fig. 13 block diagram of ports (1) data bus + - (1) port p0 data bus direction register port latch pull-up control to key input interrupt generating circuit data bus direction register port latch serial i/o1 mode selection bit (b7) serial i/o1 mode selection bit (b6) receive enable bit serial i/o1 mode selection bit (b7) serial i/o1 mode selection bit (b6) p1 0 ,p1 2 ,p1 3 input level selection bit d- input d- output serial i/o1 input usb output enable (internal signal) usb differential input d+ input d+ output serial i/o1 output usb output enable (internal signal) direction register port latch (3) port p1 1 p-channel output disable bit (2) port p1 0 (4) port p1 2 (5) port p1 3 data bus direction register p1 0 ,p1 2 ,p1 3 input level selection bit s clk pin selection bit port latch serial i/o2 clock output serial i/o2 clock input serial i/o2 clock output serial i/o2 clock input p1 0 ,p1 2 ,p1 3 input level selection bit data bus direction register signals during the s data output action port latch s data pin selection bit s data pin selection bit p1 0 , p1 2 , p1 3 input levels are switched to the cmos/ttl level by the port p1p3 control register. serial i/o1 mode selection bit (b7) serial i/o1 mode selection bit (b6) serial i/o1 mode selection bit (b7) serial i/o1 mode selection bit (b6) transmit enable bit when the ttl level is selected, there is no hysteresis char acteristics. ] ] ] ]
single-chip 8-bit cmos microcomputer 7532 group mitsubishi micr ocomputers 14 fig. 14 block diagram of ports (2) (6) port p1 4 (8) ports p3 0 e p3 5 (32-pin version: ports p3 0 e p3 4 ) data bus pull-up control data bus timer output pulse output mode cntr 0 interrupt input (7) ports p2 0 e p2 7 (32-pin version: ports p2 0 e p2 5 ) a-d conversion input data bus analog input pin selection bit data bus pull-up control (9) port p3 7 (only for 36-pin version) int interrupt input direction register port latch p3 7 /int 0 input level selection bit direction register port latch direction register port latch direction register port latch p3 7 input level is switched to the cmos/ttl level by the port p 1p3 control register. when the ttl level is selected, there is no hysteresis char acteristics. ] ]
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 15 interrupts interrupts occur by 13 different sources : 3 external sources, 9 inter- nal sources and 1 software source. interrupt control all interrupts except the brk instruction interrupt have an interrupt request bit and an interrupt enable bit, and they are controlled by the interrupt disable flag. when the interrupt enable bit and the interrupt request bit are set to 1 and the interrupt disable flag is set to 0, an interrupt is accepted. the interrupt request bit can be cleared by program but not be set. the interrupt enable bit can be set and cleared by program. it becomes usable by switching cntr 0 and ad interrupt sources with bit 7 of the interrupt edge selection register, timer 2 and serial i/ o2 interrupt sources with bit 6, and timer x and key-on wake-up in- terrupt sources with bit 5. the reset and brk instruction interrupt can never be disabled with any flag or bit. all interrupts except these are disabled when the in- terrupt disable flag is set. when several interrupts occur at the same time, the interrupts are received according to priority. interrupt operation upon acceptance of an interrupt the following operations are auto- matically performed: 1. the processing being executed is stopped. 2. the contents of the program counter and processor status regis- ter are automatically pushed onto the stack. 3. the interrupt disable flag is set and the corresponding interrupt request bit is cleared. 4. concurrently with the push operation, the interrupt destination address is read from the vector table into the program counter. notes on use when the active edge of an external interrupt (int 0 , cntr 0 ) is set, the interrupt request bit may be set. therefore, please take following sequence: 1. disable the external interrupt which is selected. 2. change the active edge in interrupt edge selection register. (in case of cntr 0 : timer x mode register) 3. clear the set interrupt request bit to 0. 4. enable the external interrupt which is selected. table 4 interrupt vector address and priority vector addresses (note 1) high-order fffd 16 fffb 16 fff9 16 fff7 16 fff5 16 fff3 16 fff1 16 ffef 16 ffed 16 priority 1 2 3 4 5 6 7 8 9 low-order fffc 16 fffa 16 fff8 16 fff6 16 fff4 16 fff2 16 fff0 16 ffee 16 ffec 16 interrupt request generating conditions at reset input at completion of uart data receive at detection of in token at completion of uart transmit shift or when transmit buffer is empty at detection of setup/out token or at detection of reset/ suspend/ resume at detection of either rising or falling edge of int 0 input at timer x underflow at falling of conjunction of input logical level for port p0 (at input) at timer 1 underflow at timer 2 underflow at completion of transmit/receive shift at detection of either rising or falling edge of cntr 0 input at completion of a-d conversion at brk instruction execution remarks non-maskable valid in uart mode valid in usb mode valid in uart mode valid in usb mode external interrupt (active edge selectable) external interrupt (valid at falling) stp release timer underflow external interrupt (active edge selectable) non-maskable software interrupt interrupt source reset (note 2) uart receive usb in token uart transmit usb setup/out token reset/suspend/resume int 0 timer x key-on wake-up timer 1 timer 2 serial i/o2 cntr 0 a-d conversion brk instruction note 1: vector addressed contain internal jump destination addresses. 2: reset function in the same way as an interrupt with the highest priority.
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 16 fig. 15 interrupt control fig. 16 structure of interrupt-related registers b7 b0 b7 b0 interrupt edge selection register int 0 interrupt edge selection bit 0 : falling edge active 1 : rising edge active not used (returns ??when read) (do not write ??to these bits) timer x or key-on wake up interrupt selection bit 0 : timer x 1 : key-on wake up timer 2 or serial i/o2 interrupt selection bit 0 : timer 2 1 : serial i/o2 cntr 0 or ad converter interrupt selection bit 0 : cntr 0 1 : ad converter (intedge : address 003a 16 ) interrupt request register 1 uart receive/usb in token interrupt request bit uart transmit/usb setup/out token/ reset/suspend/resume interrupt request bit int 0 interrupt request bit timer x or key-on wake up interrupt request bit timer 1 interrupt request bit timer 2 or serial i/o2 interrupt request bit cntr 0 or ad converter interrupt request bit not used (returns ??when read) 0 : no interrupt request issued 1 : interrupt request issued (ireq1 : address 003c 16 ) b7 b0 interrupt control register 1 uart receive/usb in token interrupt enable bit uart transmit/usb setup/out token/ reset/suspend/resume interrupt enable bit int 0 interrupt enable bit timer x or key-on wake up interrupt enable bit timer 1 interrupt enable bit timer 2 or serial i/o2 interrupt enable bit cntr 0 or ad converter interrupt enable bit not used (returns ??when read) (do not write ??to this bit) 0 : interrupts disabled 1 : interrupts enabled (icon1 : address 003e 16 ) interrupt disable flag i interrupt request interrupt request bit interrupt enable bit brk instruction reset
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 17 key input interrupt (key-on wake-up) a key-on wake-up interrupt request is generated by applying l level to any pin of port p0 that has been set to input mode. in other words, it is generated when the and of input level goes from 1 to 0. an example of using a key input interrupt is shown in fig- ure 17, where an interrupt request is generated by pressing one of the keys provided as an active-low key matrix which uses ports p0 0 to p0 3 as input ports. fig. 17 connection example when using key input interrupt and port p0 block diagram port pxx ??level output pull register bit 3 = ?? port p0 7 latch port p0 7 direction register = ? ** * p0 7 output key input interrupt request port p0 input read circuit * p-channel transistor for pull-up ** cmos output buffer pull register bit 3 = ?? port p0 6 latch port p0 6 direction register = ? ** * p0 6 output pull register bit 3 = ?? port p0 5 latch port p0 5 direction register = ? ** * p0 5 output pull register bit 3 = ?? port p0 4 latch port p0 4 direction register = ? ** * p0 4 output pull register bit 2 = ?? port p0 3 latch port p0 3 direction register = ? ** * p0 3 input pull register bit 2 = ?? port p0 2 latch port p0 2 direction register = ? ** * p0 2 input pull register bit 1 = ?? port p0 1 latch port p0 1 direction register = ? ** * p0 1 input pull register bit 0 = ?? port p0 0 latch port p0 0 direction register = ? ** * p0 0 input falling edge detection falling edge detection falling edge detection falling edge detection falling edge detection falling edge detection falling edge detection falling edge detection
single-chip 8-bit cmos microcomputer 7532 group mitsubishi micr ocomputers 18 timers the 7532 group has 3 timers: timer x, timer 1 and timer 2. the division ratio of every timer and prescaler is 1/(n+1) p rovided that the value of the timer latch or prescaler is n. all the timers are down count timers. when a timer reaches 0, an underflow occurs at the next count pulse, and the correspond ing timer latch is reloaded into the timer. when a timer underflows, t he inter- rupt request bit corresponding to each timer is set to 1. l timer 1, timer 2 prescaler 12 always counts f(x in )/16. timer 1 and timer 2 always count the prescaler output and periodically sets the interru pt request bit. l timer x timer x can be selected in one of 4 operating modes by setti ng the timer x mode register. timer mode the timer counts the signal selected by the timer x count so urce selection bit. pulse output mode the timer counts the signal selected by the timer x count so urce selection bit, and outputs a signal whose polarity is invert ed each time the timer value reaches 0, from the cntr 0 pin. when the cntr 0 active edge switch bit is 0, the output of the cntr 0 pin is started with an h output. at 1, this output is started with an l output. when usin g a timer in this mode, set the port p1 4 direction register to output mode. event counter mode the operation in the event counter mode is the same as that in the timer mode except that the timer counts the input signal fro m the cntr 0 pin. when the cntr 0 active edge switch bit is 0, the timer counts the rising edge of the cntr 0 pin. when this bit is 1, the timer counts the falling edge of the cntr 0 pin. pulse width measurement mode when the cntr 0 active edge switch bit is 0, the timer counts the signal selected by the timer x count source selection bit wh ile the cntr 0 pin is h. when this bit is 1, the timer counts the sign al while the cntr 0 pin is l. in any mode, the timer count can be stopped by setting the t imer x count stop bit to 1. each time the timer overflows, the in terrupt request bit is set. fig. 18 structure of timer x mode register fig. 19 timer count source set register timer x mode register (tm : address 002b 16 ) cntr 0 active edge switch bit 0 : interrupt at falling edge count at rising edge (in event counter mode) 1 : interrupt at rising edge count at falling edge (in event counter mode) timer x operating mode bits b1 b0 0 0 : timer mode 0 1 : pulse output mode 1 0 : event counter mode 1 1 : pulse width measurement mode not used (return 0 when read) timer x count stop bit 0 : count start 1 : count stop b7 b0 timer count source set register (tcss : address 002e 16 ) b7 b0 timer x count source selection bit (note) 0 : f(x in )/16 1 : f(x in )/2 not used (return 0 when read) note : to switch the timer x count source selection bit , stop the timer x count operation.
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 19 fig. 20 block diagram of timer x, timer 1 and timer 2 timer mode pulse output mode q r to timer x interrupt request bit f(x in )/16 timer x latch (8) timer x (8) prescaler x latch (8) prescaler x (8) pulse width measurement mode f(x in )/2 timer x count source selection bit event counter mode timer x count stop bit port p1 4 direction register q ? ? cntr 0 active edge switch bit port p1 4 latch pulse output mode ? ? cntr 0 active edge switch bit p1 4 /cntr 0 toggle flip-flop timer x latch write pulse output mode t to cntr 0 interrupt request bit data bus to timer 1 interrupt request bit to timer 2 interrupt request bit data bus prescaler 12 (8) f(x in )/16 timer 1 (8) timer 2 (8) timer 2 latch (8) timer 1 latch (8) prescaler 12 latch (8)
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 20 fig. 21 block diagram of uart serial i/o fig. 22 operation of uart serial i/o function serial i/o l serial i/o1 ? asynchronous serial i/o (uart) mode serial i/o1 can be used as an asynchronous (uart) serial i/o. a dedicated timer (baud rate generator) is also provided for baud rate generation when serial i/o1 is in operation. eight serial data transfer formats can be selected, and the transfer formats to be used by a transmitter and a receiver must be identi- cal. each of the transmit and receive shift registers has a buffer register (the same address on memory). since the shift register cannot be written to or read from directly, transmit data is written to the trans- mit buffer, and receive data is read from the respective buffer regis- ters. these buffer registers can also hold the next data to be trans- mitted and receive 2-byte receive data in succession. by selecting 1 for continuous transmit valid bit (bit 2 of sio1con), continuous transmission of the same data is made possible. this can be used as a simplified pwm. oe pe fe 1/16 x in 1/4 1/16 data bus receive buffer register address (0018 16 ) receive shift register receive buffer full flag (rbf) receive interrupt request (ri) st detector sp detector uart control register address (001a 16 ) character length selection bit 7-bit 8-bit address (001b 16 ) clock control circuit baud rate generator division ratio 1/(n+1) address (001c 16 ) brg count source selection bit transmit buffer register data bus transmit shift register address (0018 16 ) transmit shift register shift completion flag (tsc) transmit buffer empty flag (tbe) transmit interrupt request (ti) address (0019 16 ) character length selection bit transmit interrupt source selection bit continuous transmit valid bit serial i/o1 control register p1 0 /r x d p1 1 /t x d serial i/o1 status register st/sp/pa generator tsc=0 tbe=1 rbf=0 tbe=0 tbe=0 rbf=1 rbf=1 st d 0 d 1 sp d 0 d 1 st sp tbe=1 tsc=1* st d 0 d 1 sp d 0 d 1 st sp 1 : error flag detection occurs at the same time that the rbf flag becomes ??(at 1st stop bit, during reception). 2 : the transmit interrupt (ti) can be selected to occur when either the tbe or tsc flag becomes ?? depending on the setting of the transmit interrupt source selection bit (tic) of the serial i/o1 control register. 3 : the receive interrupt (ri) is set when the rbf flag becomes ?? 4 : after data is written to the transmit buffer when tsc = 1, 0.5 to 1.5 cycles of the data shift cycle is necessary until chang ing to tsc = 0. notes transmit/receive clock transmit buffer register write signal serial output t x d receive buffer register read signal serial input r x d * generated at second bit in 2-stop -bit mode 1 start bit 7 or 8 data bit 1 or 0 parity bit 1 or 2 stop bit
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 21 [serial i/o1 control register] sio1con the serial i/o1 control register consists of eight control bits for the serial i/o1 function. [uart control register] uartcon the uart control register consists of four control bits (bits 0 to 3) which are valid when asynchronous serial i/o is selected and set the data format of an data transfer. one bit in this register (bit 4) is al- ways valid and sets the output structure of the p1 1 /txd pin. [uart status register] uartsts the read-only uart status register consists of seven flags (bits 0 to 6) which indicate the operating status of the uart function and vari- ous errors. this register functions as the uart status register (uartsts) when selecting the uart. the receive buffer full flag (bit 1) is cleared to 0 when the receive buffer is read. if there is an error, it is detected at the same time that data is trans- ferred from the receive shift register to the receive buffer, and the receive buffer full flag is set. a write to the uart status register clears all the error flags oe, pe, fe, and se (bit 3 to bit 6, respectively). writing 0 to the serial i/o1 mode selection bits mod1 and mod0 (bit 7 and 6 of the serial i/o1 control register ) also clears all the status flags, including the error flags. all bits of the serial i/o1 status register are initialized to 81 16 at reset, but if the transmit enable bit (bit 4) of the serial i/o1 control register has been set to 1, the continuous transmit valid bit (bit 2) becomes 1. [transmit/receive buffer register] tb/rb the transmit buffer and the receive buffer are located at the same address. the transmit buffer is write-only and the receive buffer is read-only. if a character bit length is 7-bit, the msb of data stored in the receive buffer is 0. fig. 23 continuous transmission operation of uart serial i/o [baud rate generator] brg the baud rate generator determines the baud rate for serial transfer. the baud rate generator divides the frequency of the count source by 1/(n + 1), where n is the value written to the baud rate generator. tsc=0 tbe=1 tbe=0 st d 0 d 1 sp d 0 d 1 st sp st 1 : when the serial i/o1 mode selection bits (b7, b6) is ?0? the transmit enable bit is ?? and continuous transmit valid bit i s ?? writing on the transmit buffer initiates continuous transmission of the same data. 2 : select 0 for continuous transmit valid bit to stop continuous transmission. the t x d pin will stop at high level after completing transmission of 1 byte. 3 : if the transmit buffer contents are rewritten during a continuous transmission, transmission of the rewritten data will be sta rted after completing transmission of 1 byte. notes 1 start bit 7 or 8 data bit 1 or 0 parity bit 1 or 2 stop bit transmit/receive clock transmit buffer register write signal serial output t x d
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 22 ? universal serial bus (usb) mode by setting bits 7 and 6 of the serial i/o1 control register (address 001a 16 ) to 11, the usb mode is selected. this mode conforms to low speed device of usb specification 1.0. in this mode serial i/o1 interrupt have 5 sources; usb in and out token receive, usb reset, suspend, and resume. the usb fig. 25 usb transceiver block diagram status/uart status register functions as the usb status register (usbsts).there is the usbv refout pin for the usb reference voltage output, and a d-line with 1.5 k w external resistor can be pull up. usb mode block and usb transceiver block show in figures 24 and 25. fig. 24 usb mode block diagram x in address 0018 16 receive shift register rxrdy receive buffer register sync decoder pid decoder rxpid opid pide address comparative unit usba end pointer decoder rxep crc check crce reset interrupt request suspend interrupt request resume interrupt request token interrupt request eop nrzi, bit stuffing decoder bstfe bus state detection digital pll 6 mhz usb transceiver nrzi, bit stuffing encoder data bus data bus address 0018 16 transmit shift register txrdy transmit buffer register ep0byte ep1byte sync, pid generating unit ep0pid ep1pid crc encoder eop generating unit usb transmit unit p1 0 /d- p1 1 /d+ differential input and single end input output data and i/o control 1.5 mhz serial i/o1 control register mod0 mod1 usb reference power source voltage usb control register usbv refout output valid flag (initial value ?? output enable signal voltage input output amplifier usbv refout d+/d- output amplifier internal d- output signal internal d+ output signal d- d+ suspend oe (internal signal) signal for function stop output enable signal - + differential input single end input single end input voltage input
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 23 fig. 26 structure of serial i/o1-related registers (1) b7 b0 b7 b0 usb status register (usbsts: address 0019 16 ) transmit buffer empty flag 0: buffer full 1: buffer empty eop detection flag 0: not detected 1: detect false eop error flag 0: no error 1: false eop error crc error flag 0: no error 1: crc error pid error flag 0: no error 1: pid error bit stuffing error flag 0: no error 1: bit stuffing error summing error flag 0: no error 1: summing error receive buffer full flag 0: buffer empty 1: buffer full b7 b0 transmit buffer register (tb: address 0018 16 ) after setting data to address 0018 16 , a content of the transmit buffer register transfers to the transmit shift register automatically. cpu read: disabled cpu write: set/clear hardware read: used hardware write: not used receive buffer register (rb: address 0018 16 ) by reading data from address 0018 16 , a content of the receive buffer register can be read out. cpu read: enabled cpu write: disabled hardware read: not used hardware write: set/clear cpu read: enabled cpu write: disabled hardware read: not used hardware write: set/clear cpu read: enabled cpu write: clear hardware read: not used hardware write: set cpu read: enabled cpu write: disabled hardware read: not used hardware write: set/clear
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 24 fig. 27 structure of serial i/o1-related registers (2) not used (return ??when read) endpoint 1 enable 0: endpoint 1 invalid 1: endpoint 1 valid usb reset interrupt enable 0: usb reset invalid 1: usb reset valid resume interrupt enable 0: resume invalid 1: resume valid token interrupt enable 0: token invalid 1: token valid usb enable flag 0: usb invalid 1: usb valid b7 b0 cpu read: enabled cpu write: clear hardware read: not used hardware write: set usb data toggle synchronization register (trsync: address 001d 16 ) not used (return ??when read) sequence bit toggle flag 0: no toggle 1: sequence toggle b7 b0 cpu read: enabled cpu write: disabled hardware read: not used hardware write: set/clear usb interrupt source discrimination register 1 (usbir1: address 001e 16 ) not used (return ??when read) endpoint determination flag 0: endpoint 0 interrupt 1: endpoint 1 interrupt b7 b0 b7 b0 cpu read: enabled cpu write: clear hardware read: not used hardware write: set usb interrupt source discrimination register 2 (usbir2: address 001f 16 ) not used (return ??when read) suspend request flag 0: no request 1: suspend request usb reset request flag 0: no request 1: reset request not used (return ??when read) token pid determination flag 0: setup interrupt 1: out interrupt token interrupt flag 0: no request 1: token request cpu read: enabled cpu write: disabled hardware read: not used hardware write: set/clear cpu read: enabled cpu write: disabled hardware read: not used hardware write: set/clear usb interrupt control register (usbicon: address 0020 16 ) cpu read: enabled cpu write: set/clear hardware read: used hardware write: not used
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 25 fig. 28 structure of serial i/o1-related registers (3) b7 b0 usb transmit data byte number set register 1 (ep1byte: address 0022 16 ) set a number of data byte for transmitting with endpoint 1. cpu read: enabled cpu write: set/clear hardware read: used hardware write: not used not used (return ??when read) b7 b0 usb transmit data byte number set register 0 (ep0byte: address 0021 16 ) set a number of data byte for transmitting with endpoint 0. cpu read: enabled cpu write: set/clear hardware read: used hardware write: not used not used (return ??when read) b7 b0 usb address register (usba: address 0025 16 ) set an address allocated by the usb host. cpu read: disabled cpu write: set/clear hardware read: used hardware write: not used not used (returns ??when read) usb pid control register 1 (ep1pid: address 0024 16 ) not used (return ??when read) endpoint 1 pid selection flag 1x: in token interrupt of data0/1 is valid 01: stall handshake is valid for in token 00: nack handshake is valid for in token b7 b0 x: any data b6 cpu read: enabled cpu write: set/clear hardware read: used hardware write: not used b7 cpu read: enabled cpu write: set/clear hardware read: used hardware write: clear b7 b0 usb pid control register 0 (ep0pid: address 0023 16 ) not used (return ??when read) endpoint 0 enable flag 0: endpoint 0 invalid 1: endpoint 0 valid endpoint 0 pid selection flag 1xxx: in token interrupt of data0/1 is valid 01xx: stall handshake is valid for in token 00xx: nack handshake is valid for in token xxx1: stall handshake is valid for out token xx10: ack handshake is valid for out token xx00: nack handshake is valid for out token cpu read: enabled cpu write: set/clear hardware read: used hardware write: not used b4, b5, b6 cpu read: enabled cpu write: set/clear hardware read: used hardware write: not used b7 cpu read: enabled cpu write: set/clear hardware read: used hardware write: clear x: any data
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 26 fig. 29 structure of serial i/o1-related registers (4) usb sequence bit initialization register (inisq1: address 0026 16 ) a sequence bit of endpoint 1 is initialized. cpu read: disabled cpu write: dummy hardware read: not used hardware write: not used b7 b0 b7 b0 b7 b0 b7 b0 usb control register (usbcon: address 0027 16 ) not used (return ??when read) usbv refout output valid flag 0: output off 1: output on remote wake up request flag 0: no request 1: remote wake up request cpu read: disabled cpu write: set/clear hardware read: used hardware write: not used cpu read: disabled cpu write: set hardware read: used hardware write: clear uart status register (uartsts: address 0019 16 ) transmit buffer empty flag 0: buffer full 1: buffer empty receive buffer full flag 0: buffer empty 1: buffer full transmit shift register shift completion flag 0: transmit shift in progress 1: transmit shift completed overrun error flag 0: no error 1: overrun error parity error flag 0: no error 1: parity error framing error flag 0: no error 1: framing error summing error flag 0: no error 1: summing error not used (returns ??when read) cpu read: enabled cpu write: disabled hardware read: not used hardware write: set/clear baud rate generator (brg: address 001c 16 ) this register is valid only when selecting the uart mode. a baud rate value is set. cpu read: disabled cpu write: set/clear hardware read: used hardware write: not used cpu read: enabled cpu write: clear hardware read: not used hardware write: set
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 27 fig. 30 structure of serial i/o1-related registers (5) uart control register (uartcon: address 001b 16 ) character length selection bit 0: 8 bits 1: 7 bits parity enable bit 0: parity checking disabled 1: parity checking enabled parity selection bit 0: even parity 1: odd parity stop bit length selection bit 0: 1 stop bit 1: 2 stop bits p-channel output disable bit 0: cmos output 1: n-channel open-drain output not used (returns ??when read) cpu read: disabled cpu write: set/clear hardware read: used hardware write: not used b7 b0 b7 b0 serial i/o1 control register (sio1con: address 001a 16 ) brg count source selection bit 0: f(x in ) 1: f(x in )/4 not used (returns ??when read) continuous transmit valid bit 0: continuous transmit invalid 1: continuous transmit valid transmit interrupt source selection bit 0: interrupt when transmit buffer has emptied 1: interrupt when transmit shift operation is completed transmit enable bit 0: transmit disabled 1: transmit enabled receive enable bit 0: receive disabled 1: receive enabled serial i/o1 mode selection bits 00: i/o port 01: not available 10: uart mode 11: usb mode cpu read: disabled cpu write: set/clear hardware read: used hardware write: not used cpu read: disabled cpu write: set/clear hardware read: used hardware write: not used
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 28 note on using usb mode handling of se0 signal in program (at receiving) 7532 group has the border line to detect as usb reset or eop (end of packet) on the width of se0 (single ended 0). a response apposite to a state of the device is expected. the name of the following short words which is used in table 5 shows as follow. ?tkne: token interrupt enable (bit 6 of address 20 16 ) ?rsme: resume interrupt enable (bit 5 of address 20 16 ) ?rste: usb reset interrupt enable (bit 4 of address 20 16 ) ?spec: a response of the device requested by usb specification 1.0 ?sie: hardware operation in 7532 group ?f/w: recommendation process in the program ?feope: false eop error flag (bit 2 of address 19 16 ) ?rxpid: token interrupt flag (bit 7 of address 1f 16 ) spec sie f/w reset or resume reset interrupt request reset interrupt processing resume interrupt processing table 5 relation of the width of se0 and the state of the device width of se0 0 m sec. 0.5 m sec. 0.5 m sec. 2.5 m sec. 2.5 m sec. 2.67 m sec. 2.67 m sec. spec sie f/w spec sie f/w spec sie f/w spec sie f/w idle state tkne = x rsme = 0 rste =1 ignore keep counting suspend timer not acknowledge keep alive initialize suspend timer count value not acknowledge keep alive or reset may determine as keep alive and reset interrupt keep alive in case of no interrupt request reset processing in case of interrupt request reset reset interrupt request reset processing end of token in transaction tkne = 1 rsme = 0 rste =1 ignore not detected as eop(in case of no detection eop, sie returns idle state as time out. feope flag is set.) not acknowledge eop token interrupt request token interrupt process- ing execute eop or reset may determine as eop and reset interrupt rxpid = 1> token interrupt processing rxpid = 0> reset interrupt processing reset reset interrupt request reset processing end of data or handshake in transaction tkne = 0 rsme = 0 rste = 0 or 1 ignore not detected as eop(in case of no detection eop, sie returns idle state as timeup. feope flag is set.) wait for the next eop flag eop set eop flag after checking the set of eop flag, go to the next processing eop or reset may determine as eop and reset interrupt continue the processing in case of no interrupt request reset processing in case of interrupt request reset reset interrupt request reset processing suspend state tkne = 0 rsme = 1 rste = 0 state of device
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 29 l serial i/o2 the serial i/o2 function can be used only for clock synchronous se- rial i/o. for clock synchronous serial i/o2 the transmitter and the receiver must use the same clock. when the internal clock is used, transfer is started by a write signal to the serial i/o2 register. [serial i/o2 control register] sio2con the serial i/o2 control register contains 8 bits which control various serial i/o functions. ? for receiving, set 0 to bit 3. ? when receiving, bit 7 is cleared by writing dummy data to serial i/ o2 register after shift is completed. ? bit 7 is set earlier a half cycle of shift clock than completion of shift operation. accordingly, when checking shift completion by using this bit, the setting is as follows: (1) check that this bit is set to 1, (2) wait a half cycle of shift clock, (3) read/write to serial i/o2 register. fig. 31 structure of serial i/o2 control registers fig. 32 block diagram of serial i/o2 serial i/o2 control register (sio2con: address 0030 16 ) s data pin selection bit (note) 0 : i/o port/s data input 1 : s data output internal synchronous clock selection bits 000 : f(x in )/8 001 : f(x in )/16 010 : f(x in )/32 011 : f(x in )/64 110 : f(x in )/128 111 : f(x in )/256 b7 b0 not used (returns ??when read) transfer direction selection bit 0 : lsb first 1 : msb first s clk pin selection bit 0 : external clock (s clk is an input) 1 : internal clock (s clk is an output) transmit / receive shift completion flag 0 : shift in progress 1 : shift completed note : when using it as an s data input, set the port p1 3 direction register to ?? ? ? ? ? ? ? 1/8 1/16 1/32 1/64 1/128 1/256 x in data bus serial i/o2 interrupt request s data pin selection bit serial i/o counter 2 (3) serial i/o shift register 2 (8) s clk pin selection bit internal synchronous clock selection bits divider p1 2 /s clk p1 3 /s data p1 2 latch s clk pin selection bit s clk p1 3 latch s data pin selection bit
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 30 serial i/o2 operation by writing to the serial i/o2 register(address 0031 16 ) the serial i/o2 counter is set to 7 . after writing, the s data pin outputs data every time the transfer clock shifts from a high to a low level. and, as the transfer clock shifts from a low to a high, the s data pin reads data, and at the same time the contents of the serial i/o2 register are shifted by 1 bit. when the internal clock is selected as the transfer clock source, the following operations execute as the transfer clock counts up to 8. serial i/o2 counter is cleared to 0 . transfer clock stops at an h level. interrupt request bit is set. shift completion flag is set. also, the s data pin is in a high impedance state after the data trans- fer is complete (refer to figure 33). when the external clock is selected as the transfer clock source, the interrupt request bit is set as the transfer clock counts up to 8, but external control of the clock is required since it does not stop. notice that the s data pin is not in a high impedance state on the completion of data transfer. fig. 33 serial i/o2 timing (lsb first) d 0 synchronous clock serial i/o2 register write signal transfer clock (note) s data at serial i/o2 input receive s data at serial i/o2 output transmit serial i/o2 interrupt request bit set d 1 d 2 d 3 d 4 d 5 d 6 d 7 note : when the internal clock is selected as the transfer and the direction register of p1 3 /s data pin is set to the input mode, the s data pin is in a hi g h impedance state after the data transfer is completed.
single-chip 8-bit cmos microcomputer 7532 group mitsubishi micr ocomputers 31 a-d converter the functional blocks of the a-d converter are described bel ow. [a-d conversion register] ad the a-d conversion register is a read-only register that sto res the result of a-d conversion. do not read out this register duri ng an a-d conversion. [a-d control register] adcon the a-d control register controls the a-d converter. bit 2 t o 0 are analog input pin selection bits. bit 4 is the ad conversion completion bit. the value of this bit remains at 0 during a-d convers ion, and changes to 1 at completion of a-d conversion. a-d conversion is started by setting this bit to 0. [comparison voltage generator] the comparison voltage generator divides the voltage between v ss and v ref by 1024 by a resistor ladder, and outputs the divided volt- ages. since the generator is disconnected from v ref pin and v ss pin, current is not flowing into the resistor ladder. [channel selector] the channel selector selects one of ports p2 7 /an 7 to p2 0 /an 0, and inputs the voltage to the comparator. [comparator and control circuit] the comparator and control circuit compares an analog input volt- age with the comparison voltage and stores its result into t he a-d conversion register. when a-d conversion is completed, the c ontrol circuit sets the ad conversion completion bit and the ad int errupt request bit to 1. because the comparator is constructed li nked to a capacitor, set f(x in ) to 500 khz or more during a-d conversion. fig. 34 structure of a-d control register fig. 35 structure of a-d conversion register fig. 36 block diagram of a-d converter a-d control register (adcon : address 0034 16 ) not used (returns 0 when read) not used (returns 0 when read) ad conversion completion bit 0 : conversion in progress 1 : conversion completed b7 b0 analog input pin selection bits 000 : p2 0 /an 0 001 : p2 1 /an 1 010 : p2 2 /an 2 011 : p2 3 /an 3 100 : p2 4 /an 4 101 : p2 5 /an 5 110 : p2 6 /an 6 111 : p2 7 /an 7 read 8-bit (read only address 0035 16 ) b7 b0 b9 b8 b7 b6 b5 b4 b3 b2 (address 0035 16 ) read 10-bit (read in order address 0036 16 , 0035 16 ) b7 b0 b9 b8 (address 0036 16 ) b7 b0 b7 b6 b5 b4 b3 b2 b1 b0 (address 0035 16 ) high-order 6-bit of address 0036 16 returns 0 when read. a-d control register (address 0034 16 ) channel selector a-d control circuit resistor ladder v ss comparator a-d interrupt request b7 b0 data bus 3 10 p2 0 /an 0 p2 1 /an 1 p2 2 /an 2 p2 3 /an 3 p2 4 /an 4 p2 5 /an 5 p2 6 /an 6 p2 7 /an 7 a-d conversion register (low-order) (address 0036 16 ) (address 0035 16 ) a-d conversion register (high-order) v ref
single-chip 8-bit cmos microcomputer 7532 group mitsubishi micr ocomputers 32 watchdog timer the watchdog timer gives a means for returning to a reset st atus when the program fails to run on its normal loop due to a ru naway. the watchdog timer consists of an 8-bit watchdog timer h and an 8- bit watchdog timer l, being a 16-bit counter. standard operation of watchdog timer the watchdog timer stops when the watchdog timer control reg ister (address 0039 16 ) is not set after reset. writing an optional value to the watchdog timer control register (address 0039 16 ) causes the watchdog timer to start to count down. when the watchdog tim er h underflows, an internal reset occurs. accordingly, it is pro grammed that the watchdog timer control register (address 0039 16 ) can be set before an underflow occurs. when the watchdog timer control register (address 0039 16 ) is read, the values of the high-order 6-bit of the watchdog timer h, stp in- struction disable bit and watchdog timer h count source sele ction bit are read. initial value of watchdog timer by a reset or writing to the watchdog timer control register (address 0039 16 ), the watchdog timer h is set to ff 16 and the watchdog timer l is set to ff 16 . operation of watchdog timer h count source selection bit a watchdog timer h count source can be selected by bit 7 of the watchdog timer control register (address 0039 16 ). when this bit is 0, the count source becomes a watchdog timer l underflow s ignal. the detection time is 174.763 ms at f(x in )=6 mhz. when this bit is 1, the count source becomes f(x in )/16. in this case, the detection time is 683 m s at f(x in )=6 mhz. this bit is cleared to 0 after reset. operation of stp instruction disable bit when the watchdog timer is in operation, the stp instruction can be disabled by bit 6 of the watchdog timer control register (ad dress 0039 16 ). when this bit is 0, the stp instruction is enabled. when this bit is 1, the stp instruction is disabled, and a n internal reset occurs if the stp instruction is executed. once this bit is set to 1, it cannot be changed to 0 by program. this bit is cleared to 0 after reset. fig. 37 block diagram of watchdog timer fig. 38 structure of watchdog timer control register x in data bus 0 1 1/16 watchdog timer h count source selection bit reset circuit stp instruction disable bit watchdog timer h (8) write ff 16 to the watchdog timer control register internal reset reset watchdog timer l (8) stp instruction write ff 16 to the watchdog timer control register watchdog timer control register(address 0039 16 ) wdtcon watchdog timer h (read-only for high-order 6-bit) stp instruction disable bit 0 : stp instruction enabled 1 : stp instruction disabled watchdog timer h count source selection bit 0 : watchdog timer l underflow 1 : f(x in )/16 b7 b0
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 33 reset circuit ______ the microcomputer is put into a reset status by holding the reset pin at the ??level for 15 s or more when the power source voltage is 4.1 to 5.5 v and x in is in stable oscillation. ______ after that, this reset status is released by returning the reset pin to the ??level. the program starts from the address having the con- tents of address fffd 16 as high-order address and the contents of address fffc 16 as low-order address. note that the reset input voltage should be 0.82 v or less when the power source voltage passes 4.1 v. fig. 39 example of reset circuit fig. 40 timing diagram at reset (note) 0.2 v cc 0 v 0 v poweron v cc reset v cc reset power source voltage detection circuit power source voltage reset input voltage note : reset release voltage vcc = 4.1 v data address 8-13 clock cycles reset address from the vector table 1 : a built-in ring oscillator applies about 250 khz frequency as clock f at average of vcc = 5 v. 2 : the mark ? means that the address is changeable depending on the previous state. 3 : these are all internal signals except reset notes reset reset out sync ?? fffc fffd ad h ,ad l ??? ?? ad l ad h ??? from built-in o scillator
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 34 fig. 41 internal status of microcomputer at reset serial i/o1 control register uart control register (8) (9) prescaler 12 timer 1 timer 2 timer x mode register prescaler x timer x timer count source set register serial i/o2 control register a-d control register misrg watchdog timer control register interrupt edge selection register cpu mode register interrupt request register 1 interrupt control register 1 processor status register program counter (21) (22) (23) (24) (25) (26) (27) (28) (29) (30) (31) (32) (33) (34) (35) (36) (37) port p0 direction register port p1 direction register port p2 direction register port p3 direction register pull-up control register transmit/receive buffer register (1) (2) (3) (4) (5) (6) usb status/uart status register (7) usb data toggle synchronization register (10) usb interrupt source discrimination register 1 (11) usb interrupt source discrimination register 2 (12) usb interrupt control register (13) usb transmit data byte number set register 0 (14) usb transmit data byte number set register 1 (15) usbpid control register 0 (16) usbpid control register 1 (17) usb address register (18) usb sequence bit initialization register (19) usb control register (20) 001a 16 001b 16 02 16 1110 0000 contents of address fffc 16 (pc h ) (pc l ) ff 16 01 16 00 16 00 16 ff 16 ff 16 00 16 00 16 10 16 00 16 0028 16 0029 16 002a 16 002b 16 002c 16 002d 16 002e 16 0030 16 0034 16 0038 16 0039 16 003a 16 003b 16 003c 16 003e 16 (ps) note x : undefined contents of address fffd 16 0011 1111 00 16 00 16 00 16 1000 0000 xxxx x1xx register contents 00 16 00 16 ff 16 00 16 0001 16 0003 16 0005 16 0007 16 0016 16 0018 16 0000 0000 xx x 0 0000 address 0019 16 1000 0001 001d 16 0111 1111 001e 16 0111 1111 001f 16 0111 0011 0020 16 0000 0111 0021 16 0022 16 0023 16 0000 0111 0024 16 0011 1111 0025 16 1000 0000 0026 16 1111 1111 0027 16 0011 1111 00 16 00 16
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 35 fig. 42 external circuit of ceramic resonator fig. 43 external clock input circuit fig. 44 structure of misrg clock generating circuit an oscillation circuit can be formed by connecting a resonator be- tween x in and x out . use the circuit constants in accordance with the resonator manufacturer's recommended values. no external resistor is needed between x in and x out since a feed-back resistor exists on-chip. l oscillation control ? stop mode when the stp instruction is executed, the internal clock f stops at an h level and the x in oscillator stops. at this time, timer 1 is set to 01 16 and prescaler 12 is set to ff 16 when the oscillation stabilization time set bit after release of the stp instruction is 0. on the other hand, timer 1 and prescaler 12 are not set when the above bit is 1. accordingly, set the wait time fit for the oscillation stabilization time of the oscillator to be used. f(x in )/16 is forcibly connected to the input of prescaler 12. when an external interrupt is accepted, oscillation is restarted but the internal clock f remains at h until timer 1 underflows. as soon as timer 1 underflows, the internal clock f is supplied. this is because when a ceramic oscillator is used, some time is required until a start of oscillation. in case oscillation is restarted by reset, no wait time is generated. ______ so apply an l level to the reset pin while oscillation becomes stable. ? wait mode if the wit instruction is executed, the internal clock f stops at an h level, but the oscillator does not stop. the internal clock restarts if a reset occurs or when an interrupt is received. since the oscillator does not stop, normal operation can be started immediately after the clock is restarted. to ensure that interrupts will be received to release the stp or wit state, interrupt enable bits must be set to 1 before the stp or wit instruction is executed. when the stp status is released, prescaler 12 and timer 1 will start counting clock which is x in divided by 16, so set the timer 1 inter- rupt enable bit to 0 before the stp instruction is executed. note for use with the oscillation stabilization set bit after release of the stp instruction set to 1, set values in timer 1 and prescaler 12 after fully appreciating the oscillation stabilization time of the oscillator to be used. ? clock mode operation is started by a built-in ring oscillator after releasing reset. a division ratio (1/1,1/2,1/8) is selected by setting bits 7 and 6 of the cpu mode register after releasing it. x in c out c in x out x in x out external oscillation circuit v cc v ss open misrg(address 0038 16 ) b7 b0 oscillation stabilization time set bit after release of the stp instruction 0: set ?1 16 ?in timer1, and ?f 16 in prescaler 12 automatically 1: not set automatically reserved bits (return ??when read) (do not write ??to these bits) not used (return ??when read)
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 36 fig. 45 block diagram of system clock generating circuit (for ceramic resonator) s r q s r q 1/2 rd r s q rf 1/4 1/2 wit instruction stp instruction timing f (internal clock) stp instruction interrupt request reset interrupt disable flag l high-speed mode middle-speed mode prescaler 12 timer 1 main clock division ratio selection bit double-speed mode ring oscillator mode ring oscillator (note) note : ring oscillator is used only for starting. x out x in 1/8 middle-speed, high-speed, double -speed mode main clock division ratio selection bit ring oscillator mode
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 37 notes on programming processor status register the contents of the processor status register (ps) after reset are undefined except for the interrupt disable flag i which is 1. after reset, initialize flags which affect program execution. in particular, it is essential to initialize the t flag and the d flag because of their effect on calculations. interrupts the contents of the interrupt request bit do not change even if the bbc or bbs instruction is executed immediately after they are changed by program because this instruction is executed for the pre- vious contents. for executing the instruction for the changed con- tents, execute one instruction before executing the bbc or bbs in- struction. decimal calculations ? for calculations in decimal notation, set the decimal mode flag d to 1, then execute the adc instruction or sbc instruction. in this case, execute sec instruction, clc instruction or cld instruction after executing one instruction before the adc instruction or sbc instruction. ? in the decimal mode, the values of the n (negative), v (overflow) and z (zero) flags are invalid. timers ? when n (0 to 255) is written to a timer latch, the frequency division ratio is 1/(n+1). ? when a count source of timer x is switched, stop a count of timer x. ports ? the values of the port direction registers cannot be read. that is, it is impossible to use the lda instruction, memory opera- tion instruction when the t flag is 1, addressing mode using di- rection register values as qualifiers, and bit test instructions such as bbc and bbs. it is also impossible to use bit operation instructions such as clb and seb and read/modify/write instructions of direction registers for calculations such as ror. for setting direction registers, use the ldm instruction, sta in- struction, etc. ? set "1" to each bit 6 of the port p3 direction register and the port p3 register. a-d converter the comparator uses internal capacitors whose charge will be lost if the clock frequency is too low. make sure that f(x in ) is 500khz or more during a-d conversion. do not execute the stp instruction during a-d conversion. instruction execution timing the instruction execution time can be obtained by multiplying the frequency of the internal clock f by the number of cycles mentioned in the machine-language instruction table. the frequency of the internal clock f is the same as that of the x in in double-speed mode, twice the x in cycle in high-speed mode and 8 times the x in cycle in middle-speed mode. notes on use handling of power source pin in order to avoid a latch-up occurrence, connect a capacitor suitable for high frequencies as bypass capacitor between power source pin (vcc pin) and gnd pin (vss pin). besides, connect the capacitor to as close as possible. for bypass capacitor which should not be lo- cated too far from the pins to be connected, a ceramic capacitor of 0.01 m f to 0.1 m f is recommended. handling of usbv refout pin in order to prevent the instability of the usbv refout output due to external noise, connect a capacitor as bypass capacitor between usbv refout pin and gnd pin (v ss pin). besides, connect the ca- pacitor to as close as possible. for bypass capacitor, a ceramic or electrolytic capacitor of 0.1 m f is recommended. one time prom version the cnvss pin is connected to the internal memory circuit block by a low-ohmic resistance, since it has the multiplexed function to be a programmable power source pin (v pp pin) as well. to improve the noise reduction, connect a track between cnvss pin and vss pin with 1 to 10 k w resistance. the mask rom version track of cnvss pin has no operational inter- ference even if it is connected via a resistor.
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 38 data required for mask orders the following are necessary when ordering a mask rom produc- tion: (1) mask rom order confirmation form (2) mark specification form (3) data to be written to rom, in eprom form (three identical copies) rom programming method the built-in prom of the blank one time prom version can be read or programmed with a general-purpose prom programmer us- ing a special programming adapter. set the address of prom pro- grammer in the user rom area. the prom of the blank one time prom version is not tested or screened in the assembly process and following processes. to en- sure proper operation after programming, the procedure shown in figure 46 is recommended to verify programming. package 36p2r-a name of programming adapter pca7535fp table 6 special programming adapter fig. 46 programming and testing of one time prom version programming with prom programmer screening (caution) (150 c for 40 hours) verification with prom programmer functional check in target device the screening temperature is far higher than the storage temperature. never expose to 150 c exceeding 100 hours. caution:
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 39 electrical characteristics absolute maximum ratings C0.3 to 7.0 C0.3 to v cc + 0.3 C0.3 to v cc + 0.3 C0.3 to 13 C0.3 to v cc + 0.3 300 (note 2) C20 to 85 C40 to 125 power source voltage input voltage p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 C p3 5 , p3 7 , v ref input voltage ____________ reset, x in input voltage cnv ss (note 1) output voltage p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 C p3 5 , p3 7 , x out , usbv refout power dissipation operating temperature storage temperature v v v v v mw c c v cc v i v i v i v o p d t opr t stg conditions symbol ratings unit parameter all voltages are based on v ss . output transistors are cut off. ta = 25 c notes 1: it is a rating only for the one time prom version. connect to v ss for the mask rom version. 2: 200 mw for 32-pin version. table 7 absolute maximum ratings
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 40 recommended operating conditions table 8 recommended operating conditions (v cc = 4.1 to 5.5 v, ta = C20 to 85 c, unless otherwise noted) min. max. symbol parameter unit power source voltage limits 5.5 v cc v cc v cc v cc 3.6 0.3 v cc 0.8 0.2 v cc 0.8 0.16v cc C80 80 60 C40 40 30 C10 10 30 C5 5 15 6 4.1 2.0 0.8 v cc 2.0 0.8 v cc 2.0 0 0 0 0 0 f(x in ) = 6 mhz v cc v ss v ref v ih v ih v ih v ih v il v il v il v il v il ? i oh(peak) ? i ol(peak) ? i ol(peak) ? i oh(avg) ? i ol(avg) ? i ol(avg) i oh(peak) i ol(peak) i ol(peak) i oh(avg) i ol(avg) i ol(avg) f(x in ) power source voltage analog reference voltage h input voltage p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 Cp3 5 , p3 7 h input voltage (ttl input level selected) p1 0 , p1 2 , p1 3 , p3 7 h input voltage ____________ reset, x in h input voltage d+, d- l input voltage p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 Cp3 5 , p3 7 l input voltage (ttl input level selected) p1 0 , p1 2 , p1 3 , p3 7 l input voltage ____________ reset, cnv ss l input voltage d+, d- l input voltage x in h total peak output current (note 1) p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 Cp3 5 , p3 7 l total peak output current (note 1) p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 7 l total peak output current (note 1) p3 0 Cp3 5 h total average output current (note 1) p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 Cp3 5 , p3 7 l total average output current (note 1) p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 7 l total average output current (note 1) p3 0 Cp3 5 h peak output current (note 2) p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 Cp3 5 , p3 7 l peak output current (note 2) p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 7 l peak output current (note 2) p3 0 Cp3 5 h average output current (note 3) p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 Cp3 5 , p3 7 l average output current (note 3) p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 7 l average output current (note 3) p3 0 Cp3 5 internal clock oscillation frequency (note 4) v cc = 4.1 to 5.5 v at ceramic oscillation or external clock input double-speed mode v v v v v v v v v v v v ma ma ma ma ma ma ma ma ma ma ma ma mhz note 1: the total output current is the sum of all the currents flowing through all the applicable ports. the total average current is an average value measured over 100 ms. the total peak current is the peak value of all the currents. 2: the peak output current is the peak current flowing in each port. 3: the average output current i ol (avg), i oh (avg) in an average value measured over 100 ms. 4: when the oscillation frequency has a duty cycle of 50 %. 5.0 0 typ.
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 41 electrical characteristics table 9 electrical characteristics (1) (v cc = 4.1 to 5.5 v, v ss = 0 v, ta = C20 to 85 c, unless otherwise noted) min. typ. max. symbol parameter limits unit i oh = C5 ma v cc = 4.1 to 5.5 v i oh = C1.0 ma v cc = 4.1 to 5.5 v v cc = 4.40 to 5.25 v pull-down through 15k w 5% for d+, d- pull-up through 1.5k w 5% by usbv refout for d- (ta = 0 to 70 c) i ol = 5 ma v cc = 4.1 to 5.5 v i ol = 1.5 ma v cc = 4.1 to 5.5 v v cc = 4.40 to 5.25 v pull-down through 15k w 5% for d+, d- pull-up through 1.5k w 5% by usbv refout for d- (ta = 0 to 70 c) i ol = 15 ma v cc = 4.1 to 5.5 v i ol = 1.5 ma v cc = 4.1 to 5.5 v v i = v cc (pin floating. pull up transistors off) v i = v cc v i = v cc v i = v ss (pin floating. pull up transistors off) v i = v ss v i = v ss v i = v ss (pull up transistorson) test conditions v cc C1.5 v cc C1.0 2.8 h output voltage p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 Cp3 5 , p3 7 (note 1) h output voltage d+, d- l output voltage p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 7 l output voltage d+, d- l output voltage p3 0 Cp3 5 hysteresis d+, dC hysteresis cntr 0 , int 0 (note 2), p0 0 Cp0 7 (note 3) hysteresis r x d, s clk , s data (note 2) hysteresis reset h input current p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 Cp3 5 , p3 7 h input current reset h input current x in l input current p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 Cp3 5 , p3 7 l input current reset, cnv ss l input current x in l input current p0 0 Cp0 7 , p3 0 Cp3 5 , p3 7 ram hold voltage v v v oh v oh 3.6 v v ol 0.3 1.5 v v v ol 0.3 v v ol 2.0 0.3 v v v v t+ Cv tC i ih when clock stopped v v 0.5 0.5 4 C4 C0.2 5.0 5.0 C5.0 C5.0 C0.5 v m a m a m a m a m a m a ma 2.0 5.5 v v t+ Cv tC v t+ Cv tC v t+ Cv tC i il i ih i ih i il i il i il v ram note 1: p1 1 is measured when the p-channel output disable bit of the uart control register (bit 4 of address 001b 16 ) is 0. 2: r x d, s clk , s data , and int 0 have hysteresises only when bits 0 and 2 of the port p1p3 control register are set to 0 (cmos level). 3: it is available only when operating key-on wake-up. 0.4 0.15
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 42 table 10 electrical characteristics (2) (v cc = 4.1 to 5.5 v, v ss = 0 v, ta = ?0 to 85 c, unless otherwise noted) min. typ. max. symbol parameter limits unit test conditions i cc power source current 6 1.6 0.8 0.1 10 3.2 ma ma ma double-speed mode, f(x in ) = 6 mhz output transistors ?ff f(x in ) = 6 mhz (in wit state) output transistors ?ff increment when a-d conversion is executed f(x in ) = 6 mhz, v cc = 5 v all oscillation stopped (in stp state) output transistors ?ff v cc = 4.40 to 5.25 v oscillation stopped in usb mode usb (suspend), (pull-up resis- tor output not included) (fig. 47) ta = 25 c ta = 85 c ta = 0 to 70 c 1.0 10 a a 300 a resolution linearity error differential nonlinear error zero transition voltage full scale transition voltage conversion time ladder resistor reference power source input current a-d port input current min. typ. max. symbol parameter limits unit test conditions v cc = 4.1 to 5.5 v ta = 25 c v cc = 4.1 to 5.5 v ta = 25 c 0520 lsb lsb bits 0.9 3 10 a-d converter characteristics table 11 a-d converter characteristics (1) (v cc = 4.1 to 5.5 v, v ss = 0 v, ta = ?0 to 85 c, unless otherwise noted) mv 5105 50 30 5115 5125 mv v ot v fst t conv r ladder i vref i i(ad) v ref = 5.0 v 122 200 55 150 tc(x in ) k ? 5.0 a a v ref = 3.0 v 120 70 v cc = v ref = 5.12 v v cc = v ref = 5.12 v fig. 47 power source current measurement circuit in usb mode at oscillation stop v cc i cc v cc v ss usbv refout d- 1.5 k ? 15 k ? i out rating value = i cc i out
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 43 timing requirements table 12 timing requirements (v cc = 4.1 to 5.5 v, v ss = 0 v, ta = ?0 to 85 c, unless otherwise noted) min. typ. max. symbol parameter limits unit ____________ t w (reset) t c (x in ) t wh (x in ) t wl (x in ) t c (cntr) t wh (cntr) t wl (cntr) t c (s clk ) t wh (s clk ) t wl (s clk ) t su (s clk s data ) t h (s clk s data ) reset input l pulse width external clock input cycle time external clock input h pulse width external clock input l pulse width cntr 0 input cycle time cntr 0 , int 0 input h pulse width cntr 0 , int 0 input l pulse width serial i/o2 clock input cycle time serial i/o2 clock input h pulse width serial i/o2 clock input l pulse width serial i/o2 input set up time serial i/o2 input hold time 15 166 70 70 200 80 80 1000 400 400 200 200 s ns ns ns ns ns ns ns ns ns ns ns switching characteristics table 13 switching characteristics (v cc = 4.1 to 5.5 v, v ss = 0 v, ta = ?0 to 85 c, unless otherwise noted) t c (s clk )/2 30 t c (s clk )/2 30 0 min. typ. max. symbol parameter limits unit t wh (s clk ) t wl (s clk ) t d (s clk s data ) t v (s clk s data ) t r (s clk ) t f (s clk ) t r (cmos) t f (cmos) t r (d+), t r (d-) t f (d+), t f (d-) serial i/o2 clock output h pulse width serial i/o2 clock output l pulse width serial i/o2 output delay time serial i/o2 output valid time serial i/o2 clock output rising time serial i/o2 clock output falling time cmos output rising time (note) cmos output falling time (note) usb output rising time, c l = 350 pf, ta = 0 to 70 c usb output falling time, c l = 350 pf, ta = 0 to 70 c 140 30 30 30 30 300 300 ns ns ns ns ns ns ns ns ns ns 10 10 200 200 100 100 notes: x out pin is excluded. fig. 48 output switching characteristics measurement circuit 100 pf measured output pin cmos output
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 44 fig. 49 timing chart 0.2v cc t d (s clk -s data ) t f 0.2v cc 0.8v cc 0.8v cc t r t su (s data -s clk )t h (s clk -s data ) t v (s clk -s data ) t c (s clk ) t wl (s clk ) t wh (s clk ) s data (at receive) s clk 0.2v cc t wl (x in ) 0.8v cc t wh (x in ) t c (x in ) x in 0.2v cc 0.8v cc t w (reset) reset 0.2v cc t wl (cntr) 0.8v cc t wh (cntr) t c (cntr) 0.2v cc t wl (int) 0.8v cc t wh (int) s data (at transmit) int 0 cntr 0 0.1v0h d+, d- t f 0.9v0h t r
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 45 mark specification form 36p2r-a (36-pin shrink sop) mark specification form mitsubishi ic catalog name please choose one of the marking types below (a, b, c), and enter the mitsubishi catalog name and the special mark (if needed). a. standard mitsubishi mark c. special mark required b. customers parts number + mitsubishi catalog name mitsubishi ic catalog name 3 : the standard mitsubishi font is used for all characters except for a logo. note1 : if the special mark is to be printed, indicate the desired layout of the mark in the left figure. the layout will be duplicated as close as possible. mitsubishi lot number (6-digit or 7-digit) and mask rom number (3-digit) are always marked. 2 : if the customers trade mark logo must be used in the special mark, check the box below. please submit a clean original of the logo. for the new special character fonts a clean font original (ideally logo drawing) must be submitted. special logo required customers parts number note : the fonts and size of characters are standard mitsubishi type. mitsubishi ic catalog name note1 : the mark field should be written right aligned. 2 : the fonts and size of characters are standard mitsubishi type. 3 : customers parts number can be up to 11 characters : only 0 ~ 9, a ~ z, +, C, /, (, ), &, ? , . (periods), , (commas) are usable. 4 : if the mitsubishi logo is not required, check the box below. mitsubishi logo is not required mitsubishi ic catalog name mitsubishi lot number (6-digit or 7-digit) 1 18 19 36 1 18 19 36 mitsubishi lot number (6-digit or 7-digit) 1 18 19 36
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 46 32p6b-a (32-pin lqfp) mark specification form mitsubishi ic catalog name please choose one of the marking types below (a, b), and enter the mitsubishi catalog name and the special mark (if needed). a. standard mitsubishi mark b. customers parts number + mitsubishi catalog name mitsubishi ic catalog name mitsubishi ic catalog name customers parts number note : the fonts and size of characters are standard mitsubishi type. mitsubishi ic catalog name note1 : the mark field should be written right aligned. 2 : the fonts and size of characters are standard mitsubishi type. 3 : customers parts number can be up to 7 characters : only 0 ~ 9, a ~ z, +, C, /, (, ), &, ? , . (periods), , (commas) are usable. 1 32 8 9 16 25 17 24 mitsubishi lot number (4-digit or 5-digit) 1 32 8 9 16 25 17 24
single-chip 8-bit cmos microcomputer 7532 group mitsubishi micr ocomputers 47 ssop36-p-450-0.80 w eight(g) e jedec code 0.53 eiaj package code lead material alloy 42 36p2r-a plastic 36pin 450mil ssop symbol min nom max a a 2 b c d e l l 1 y dimension in millimeters h e a 1 i 2 e e .35 0 .05 0 .13 0 .8 14 .2 8 e .63 11 .3 0 e e e .27 1 e e .0 2 .4 0 .15 0 .0 15 .4 8 .8 0 .93 11 .5 0 .765 1 e .43 11 e e .4 2 e .5 0 .2 0 .2 15 .6 8 e .23 12 .7 0 e .15 0 e b 2 e. 5 0e e 0 e1 0 e e 1 36 19 18 1 h e e d b e y f a a 2 a 1 l 1 l c e b 2 e 1 i 2 recommended mount pad detail f package outline
single-chip 8-bit cmos microcomputer 7532 group mitsubishi microcomputers 48 ? 1999 mitsubishi electric corp. new publication, effective jul. 1999. specifications subject to change without notice. notes regarding these materials ? these materials are intended as a reference to assist our customers in the selection of the mitsubishi semiconductor product b est suited to the customers application; they do not convey any license under any intellectual property rights, or any other rights, belonging to mitsubishi electric corporation or a third party. ? mitsubishi electric corporation assumes no responsibility for any damage, or infringement of any third-partys rights, origina ting in the use of any product data, diagrams, charts or circuit application examples contained in these materials. ? all information contained in these materials, including product data, diagrams and charts, represent information on products a t the time of publication of these materials, and are subject to change by mitsubishi electric corporation without notice due to product improvements or other reasons. it is therefore recommended that customers co ntact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for the latest product information before purchasing a product listed herein. ? mitsubishi electric corporation semiconductors are not designed or manufactured for use in a device or system that is used und er circumstances in which human life is potentially at stake. please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor when considering the use of a pro duct contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use. ? the prior written approval of mitsubishi electric corporation is necessary to reprint or reproduce in whole or in part these m aterials. ? if these products or technologies are subject to the japanese export control restrictions, they must be exported under a licen se from the japanese government and cannot be imported into a country other than the approved destination. any diversion or reexport contrary to the export control laws and regulations of japan and/or the country of destination is pro hibited. ? please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for further detai ls on these materials or the products contained therein. keep safety first in your circuit designs! ? mitsubishi electric corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. trouble with semiconductors may lead to personal injury, fire or property damage. remember to give due consideration to safety when making y our circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of non-flammable material or (iii) prevention against any malfunction or mishap. lqfp32-p-77-0.80 weight(g) jedec code eiaj package code lead material alloy 42 32p6b-a plastic 32pin 7 5 7mm body lqfp 0.1 0.2 symbol min nom max a a 2 b c d e h e l l 1 y b 2 dimension in millimeters h d a 1 0.5 i 2 1.0 m d 7.4 m e 7.4 10 0 0.1 1.0 0.7 0.5 0.3 9.2 9.0 8.8 9.2 9.0 8.8 0.8 7.1 7.0 6.9 7.1 7.0 6.9 0.175 0.125 0.105 0.45 0.35 0.3 1.4 0 1.7 e e e e c h e 1 8 9 32 25 24 16 17 h d d m d m e a f b a 1 a 2 l 1 l y b 2 i 2 recommended mount pad detail f
rev. rev. no. date 1.0 first edition 970822 1.1 all pages; preliminary notice: this is not a final specification. some parametric limits 981218 are subject to change. eliminated. page 4; fig. 3; under development eliminated. page 5; central processing unit (cpu); the name of manual, 740 family software manual, is revised. fig. 4; the bit name is revised. bits 6 and 7 explanations of cpu mode register are revised. fig. 5; explanation is added. page 6; special page ; some words are corrected. page 7 fig. 7 ; some register names are revised. page 8 [direction register] pid; the sentence is revised. ? pins set to output are floating. fig. 9; the figure title is revised. page 12; interrupts; explanation is revised. the period is added. interrupt operation; the order of operation is revised. table 4: remarks is revised. some words are corrected. page 17; serial i/o; some words and the pin name position are revised. page 18; the register name is revised. ? [uart status register] uartsts fig. 20; some words are corrected. page 21 to page 24; some words are corrected. page 26; serial i/o2; some words are corrected. fig. 29; explanation is revised. page 28; [a-d conversion register]ad; the sentence is revised. ? do not read out during an a-d conversion. page 29; fig. 35; the sentence is revised. ? read-only for high-order 6-bit page 30; fig. 37; the period is added. page 32; ? wait mode; the sentence is revised. ? when the stp status is released, prescaler 12 and timer 1 will start counting clock which is x in divided by 16,..... page 34; one time prom version; the sentences are revised. ? to improve the noise reduction, connect a track between cnm ss pin and v ss pin... ? the mask rom version track of cnv ss pin has no operational interference... page 36; absolute maximum ratings; parameter of input voltage is revised. note is revised. page 37; recommended operating conditions; limits of h input voltage is revised. revision description list 7532 group data sheet (1/2) revision description
revision description list 7532 group data sheet (2/2) revision description rev. rev. no. date 1.1 page 38; electrical characteristics; 981218 test conditions of v oh and v ol are revised. some of v ol are eliminated partly. hysteresis is added. page 39; electrical characteristics; test condition is added. a-d converter characteristics; some of v ot and v fst are eliminated partly. page 40; switching characteristics; title and table title are revised. limits of t c (x in ), t wh (x in ), t wl (x in ). figure is added. 2.0 most of the contents (functional description, electrical characteristics, and so on) are updated. 990723 2.1 page 2; fig. 2 pin configuration of M37532M4-XXXGP; pin functions revised. 991015 pin 26: p1 0 /rxd/d- (correct) pin 27: p1 1 /txd/d+ (correct) 2.2 updated as follows: 991110 ?age 1; power dissipation to 30 mw ?age 9; fig. 9; start address of interrupt vector area to ffec 16 ?age 42, table 11; parameter to linearity error from former absolute accuracy 2.3 page 30; fig.33 note revised 000614 page 33; description revised; reset ??pulse width 2 s 15 s page 42, table 11 linearity error; ?xcluding quantization error?deleted page 43; table 12 tw(reset) revised; 2 15 2.4 page 33: character fonts errors revised 000905


▲Up To Search▲   

 
Price & Availability of M37532M4-XXXGP

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X